package com.gitee.aurora.job.dao;

import com.gitee.aurora.job.entity.QuartzJob;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

/**
 * @author liaofuxing
 */
@Repository
public interface JobDao extends JpaRepository<QuartzJob, Integer>, JpaSpecificationExecutor<QuartzJob> {
    QuartzJob findByJobName(String jobName);

    void deleteByJobName(String jobName);

    QuartzJob findByJobNameAndIdNot(String jobName, Integer id);
}

